package com.example.teesystem.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 *
 * @TableName t_advanced_training
 */
@TableName(value ="t_advanced_training")
@Data
public class AdvancedTraining implements Serializable {
    /**
     * key自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 所属科目
     */
    @TableField(value = "course_id")
    private Integer courseId;

    /**
     * 所属章节
     */
    @TableField(value = "chapter_id")
    private Integer chapterId;

    /**
     * 更新者id
     */
    @TableField(value = "update_id", fill = FieldFill.INSERT_UPDATE)
    private Integer updateId;

    /**
     * 上传时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /**
     * 0未删除，1已删除
     */
    @TableField(value = "is_delete")
    @TableLogic
    private Integer isDelete;

    @TableField(value = "message")
    private String message;

    @TableField(value = "is_open")
    private Integer isOpen;

    @TableField(value = "pre_advanced_training")
    private Integer preAdvancedTraining;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
